package com.taiji.dianthus.domain.sms;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;


@Entity
@Table(name = "d_sms_back_info")
@Proxy(lazy = false)
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@ApiModel(description = "短信信息回执表")
public class SmsBackInfo {
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id")
    @ApiModelProperty(value = "主键", name = "id")
    private String id;
    @Column(name = "report_status")
    @ApiModelProperty(value = "发送成功状态码", name = "reportStatus")
    private String reportStatus;// 发送成功状态码：DELIVRD
    @Column(name = "mobile")
    @ApiModelProperty(value = "回执手机号", name = "mobile")
    private String mobile;//mobile	String	回执手机号，每批次返回一个号码。
    @Column(name = "submit_date")
    @ApiModelProperty(value = "提交时间", name = "submitDate")
    private String submitDate;//提交时间，格式：yyyyMMddHHmmss。
    @Column(name = "receive_date")
    @ApiModelProperty(value = "接收时间", name = "receiveDate")
    private String receiveDate;//接收时间，格式同上。
    @Column(name = "error_code")
    @ApiModelProperty(value = "发送失败的状态码", name = "errorCode")
    private String errorCode;//errorCode	String	发送失败的状态码，如DB:0140。
    @Column(name = "msg_group")
    @ApiModelProperty(value = "消息批次号", name = "msgGroup")
    private String msgGroup;//msgGroup	String	消息批次号，唯一编码，与前文响应中的msgGroup对应。
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "sms_info_id")
    private String smsInfoId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReportStatus() {
        return reportStatus;
    }

    public void setReportStatus(String reportStatus) {
        this.reportStatus = reportStatus;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(String submitDate) {
        this.submitDate = submitDate;
    }

    public String getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(String receiveDate) {
        this.receiveDate = receiveDate;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgGroup() {
        return msgGroup;
    }

    public void setMsgGroup(String msgGroup) {
        this.msgGroup = msgGroup;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSmsInfoId() {
        return smsInfoId;
    }

    public void setSmsInfoId(String smsInfoId) {
        this.smsInfoId = smsInfoId;
    }

    @Override
    public String toString() {
        return "SmsBackInfo{" +
                "reportStatus='" + reportStatus + '\'' +
                ", mobile='" + mobile + '\'' +
                ", submitDate='" + submitDate + '\'' +
                ", receiveDate='" + receiveDate + '\'' +
                ", errorCode='" + errorCode + '\'' +
                ", msgGroup='" + msgGroup + '\'' +
                '}';
    }
}
